package cn.jxwazx.sheinspringboot.mapper.convert;


import cn.jxwazx.sheinspringboot.entity.dto.PermissionDto;
import cn.jxwazx.sheinspringboot.entity.param.CreatePermissionRequest;
import cn.jxwazx.sheinspringboot.entity.param.UpdatePermissionRequest;
import cn.jxwazx.sheinspringboot.entity.po.Permission;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface PermissionConvert {


   PermissionConvert INSTANCE = Mappers.getMapper(PermissionConvert.class);

   PermissionDto convert(Permission permission);
   Permission convert(UpdatePermissionRequest permission);
   Permission convert(CreatePermissionRequest permission);
}
